Skip Headers

Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 2 (10.2) Part Number B14308-01 |
Home | Book List | Contents | Index | Master Index | Feedback

# SetEditOption Method

Applies To

ORef

Description

Specifies whether the object is to be locked during the pin operation.

Usage

void SetEditOption(int option) const throw(OException)

Arguments

option | Possible values are OREF_NO_LOCK (1) Does not lock the object in the server. This is the default value. OREF_EXCLUSIVE_LOCK (2) Does exclusive lock on the object in the serve. OREF_NOWAIT_LOCK (3) Does exclusive lock on the object in the server with the nowait option.

Remarks

This method should be called before a pin operation on a Ref value, that is, before accessing an attribute for the first time on the ORef object. This option is useful if the object attributes are modified immediately after the pin operation. Locking the object instance during the pin operation saves the round trip to the server during the Edit operation.

See Also

GetEditOption Method